<template>
  <div>
    <el-card class="box">
      <h2 class="title">
        {{ details.title }}
      </h2>
      <span> 发布时间：{{ details.date }} </span>
      <span class="l"> 发布者：{{ details.submit }} </span>
      <span class="r"> 归属人：{{ details.receive }} </span>
      <div class="content">
        {{ details.content }}
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      details: []
    }
  },
  created() {
    this.details = this.$route.params.details
  }
}
</script>

<style lang="less" scoped>
.el-card.box {
  text-align: center;
  h2.title {
    font-size: 24px;
    margin-top: 20px;
  }
  span {
    display: inline-block;
    font-size: 14px;
    color: #777;
    margin: 10px 10px 0;
  }
  .content {
    font-size: 16px;
    color: #666;
  }
}
</style>
